package com.java.advance.aop.staticproxy;

import com.java.advance.aop.IUserDao;
import com.java.advance.aop.UserDaoImpl;

/**
 * 执行测试类
 * Created by yangminghua on 2019/4/4.
 */
public class MainTest {


    public static void main(String[] args) {
        //代理对象
        IUserDao userDao = new UserDaoStaticProxy(new UserDaoImpl());
        //执行代理方法
        userDao.save();
    }
}
